html, body, #wrap {
    height: 100%;
    margin: 0;
}

body > #wrap {
    height: auto; 
    min-height: 100%;
    background: url('/images/main_bg.jpg');
}

#header {
    background-color: rgba(0,0,0,0.5);
    height: 100px;
}  /* отступ должен быть равен высоте футера */

#main {
    padding-bottom: 50px;
}  /* отступ должен быть равен высоте футера */
#side {
    width: 150px;
    float: left;
}
#content {
    margin: 10px 10px 10px 150px;
    color: #aaa;
    padding: 20px;
    background-color: rgba(0,0,0,0);
}
#footer {
    background-color: rgba(0,0,0,0.5);
    position: relative;
    margin-top: -50px; /* отрицательное значение высоты футера */
    height: 30px;
    clear:both;
    padding: 10px;
} 

#side-menu {
    width: 110px;
    min-height: 500px;
    background: #444;
    margin: 20px 10px;
    padding: 10px;
}

#header h1 {
    margin: 0 auto;
    color: #e95;
    font-family: verdana;
    padding: 10px;
    text-align: center;
}

#top-menu {
    height: 20px;
    width: 1000px;
    margin: 0 auto;
    padding: 5px 10px;
    background: #333;
}

#footer-menu {
    height: 20px;
    width: 1000px;
    color: #aaa;
    margin: auto;
    padding: 5px 10px;
    background: #333;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix {
    display: inline-block;
}
/* Hides from IE-mac \*/
* html .clearfix { 
    height: 1%;
}
.clearfix {
    display: block;
}
/* End hide from IE-mac */


#side-menu a {
    text-decoration: none;
    color: #e95;
    font-family: verdana;
    margin-bottom: 20px;
    display: block;
    font-size: 9pt;
    font-weight: bold;
}

.photo-list.photo-container {
    width: 300px;
    height: 300px;
    border: 1px solid #999;
    background-color: rgba(238,238,238,0.7);
    float: left;
}

.photo-list img {
    width: 280px;
    display: block;
}

.photo-list.photo {
    width: 280px;
    height: 200px;
    margin: 5px auto;
    overflow: hidden;
    display: block;
}

.photo-list.photo-name {
    color: #663333;
    text-align: center;    
    display: block;
}

.photo-list.photo-user-name, .photo-list.photo-category-name, .photo-list.photo-album-name {
    color: #663333;
    margin-left: 20px;
    font-size: 12px;
}
